<template>
	<view>
		<!-- 秒杀 -->
		<view class="seckill">
			<text>
				9.9
			</text>
			元 秒杀专场
		</view>
		<!-- 选项卡 -->
		<view class="seckill-cen">
			<view>
				<view class="conton-top">
					<view class="tab_list">
						<view v-for="(item,index) in tab_list" :key='index' :class="{items:true,items_active:tab_index==index}" @click="tabs1(index)">{{item}}</view>

					</view>
					<view v-show="tab_index == 0">
						<view class="cen-top">
							<view class="cen-data">
								<view class="cen-data-top">
									<text>距离结束还剩</text>
									<u-count-down :timestamp="timestamp" :show-border="false" font-size="28" color="#fff" bg-color="#333" padding="8">
									</u-count-down>
								</view>
								<view class="cen-data-bom">时刻关注附近沙龙活动动态</view>
							</view>
							<view class="cen-con" v-for="(item,index) in 3" :key="index">
								<view class="cen-con-img">
									<image src="/static/timg.jpg" mode=""></image>
								</view>
								<view class="cen-con-right">
									<view class="con-right-top">
										<view class="right-top-left">
											<view class="left-pirce">
												<text style="color:  #00c6c2;font-size:30rpx;margin-right: 10rpx;">￥9.9</text>
												<text>门市价 ￥<text class="pirces">99</text></text>
											</view>
											<view class="left-text1">洗剪吹</view>
											<view class="left-text2">发型提案+裁剪+造型</view>
										</view>
										<view class="right-top-right">
											<view style="font-size: 16rpx;">还剩125份</view>
											<view>秒杀抢</view>
										</view>
									</view>
									<view class="con-bom">
										<image src="/static/timg.jpg" mode=""></image>
										<view class="bom-right">
											<view class="bom-right-top">
												<text class="rtext">Tony 美发师</text>
												<view>高级</view>
												<view class="ico_x">
													<view>
														<text class="icon iconfont" v-for="(indexs,indexs) in 3" :key="indexs">&#xe621;</text>
													</view>
												</view>

											</view>

											<view class="bom-right-bom">
												<view class="bom-score">
													<text class="score">4.7分</text>
													<text class="score">很棒</text>
													<text>128条点评</text>
													<text>234次服务</text>
												</view>
												<view class="distance">2.6km</view>
											</view>
										</view>

									</view>
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {

		data() {
			return {
				tab_list: ['美发', '美容', '美肤', '美妆', '美体', '美甲'],
				tab_index: 0,
				timestamp: 86400,
				count: 3,
				value: 3
			}
		},

		methods: {
			tabs1(index) {
				this.tab_index = index
			},
		},
		created() {

		}
	}
</script>

<style lang="scss">
	.seckill {
		padding: 44rpx 25rpx 50rpx 25rpx;
		background-color: #00c6c2;
		color: #fff;
		font-size: 40rpx;
		font-family: PingFang;

		text {
			font-size: 60rpx;
			color: #fff;
		}
	}

	.conton-top {


		.tab_list {
			padding: 30rpx 30rpx 0 30rpx;
			display: flex;
			align-items: flex-end;
			justify-content: space-between;
			background-color: #f0f0f0;

			.items_active {
				border-bottom: 7rpx solid #00C6C2;
				font-weight: bold !important;
				color: #00C6C2 !important;
			}

			.items {
				height: 60rpx;
				font-size: 32rpx;
				font-family: PingFang;
				font-weight: 500;
				color: #000;
			}
		}

		.cen-top {
			padding: 0 30rpx;

			.cen-data {
				padding: 30rpx 0;
				border-bottom: 1rpx solid #e0e0e0;

				.cen-data-top {
					line-height: 35rpx;
					display: flex;
					align-items: center;
					justify-content: center;

					text {
						font-size: 26rpx;
						color: #000000;
						font-weight: 500;
						font-family: PingFang;
						margin-right: 20rpx;
					}

					.u-countdown-item.data-v-7ebf7480 {
						padding: 8rpx;
					}
				}

				.cen-data-bom {
					margin-top: 25rpx;
					font-size: 20rpx;
					color: #7c7c7c;
					text-align: center;
				}
			}

			.cen-con {
				width: 100%;
				padding: 20rpx 0;
				border-bottom: 1rpx solid #EEEEEE;
				display: flex;
				align-items: center;

				.cen-con-img {
					width: 170rpx;
					height: 200rpx;

					image {
						width: 100%;
						height: 100%;
					}
				}

				.cen-con-right {
					padding-left: 30rpx;
					width: 70%;

					.con-right-top {
						display: flex;

						justify-content: space-between;

						.right-top-left {

							.left-pirce {
								font-family: PingFang SC Bolb;

								text {
									font-size: 17rpx;
									color: #727272;

									.pirces {
										text-decoration: line-through;
									}
								}
							}

							.left-text1 {
								font-size: 26rpx;
								color: #000000;
								font-weight: 500;
								font-family: PingFang SC;
								margin: 10rpx 0;
							}

							.left-text2 {
								font-size: 22rpx;
								color: #494949;
								font-family: PingFang SC;
							}
						}

						.right-top-right {
							width: 118rpx;
							height: 63rpx;
							line-height: 31rpx;
							text-align: center;
							background-color: #00c6c2;
							border-radius: 7rpx;


							view {
								font-size: 21rpx;
								color: #fff;
							}
						}
					}

					.con-bom {
						padding-top: 15rpx;
						display: flex;
						align-items: center;



						image {
							width: 55rpx;
							height: 55rpx;
							border-radius: 50%;
						}

						.bom-right {
							padding-left: 20rpx;
							width: 84%;

							.bom-right-top {
								display: flex;
								align-items: center;


								.rtext {
									font-size: 18rpx;
									color: #000000;
									font-weight: 500;
									font-family: PingFang SC;
									margin-right: 15rpx;
								}

								view {
									margin-right: 5rpx;
									font-size: 16rpx;
									color: #333333;
								}

								.ico_x {

									line-height: 10rpx;

									.iconfont {
										color: #F2CB51;
										font-size: 16rpx;
									}
								}

							}

							.bom-right-bom {

								display: flex;
								align-items: center;
								justify-content: space-between;

								.bom-score {
									font-size: 16rpx;
									color: #373737;

									.score {
										font-size: 18rpx;
										color: #000000;
										font-weight: 500;
										margin-right: 8rpx;
									}

									text {
										margin-right: 10rpx;
									}
								}

								.distance {
									font-size: 16rpx;
									color: #373737;
								}
							}
						}
					}
				}
			}
		}
	}
</style>
